using System.Collections.Generic;
using System.Collections;
using System.Linq;
using Models;
using Microsoft.EntityFrameworkCore;
using IDAL;

namespace DAL
{
    public class DepreciationRuleService : IDepreciationRuleService
    {
        private ITAMContext dbContext = null;
        public DepreciationRuleService(ITAMContext context)
        {
            this.dbContext = context;
        }

        public List<DepreciationRule> GetDepreciationRules()
        {
            var result = (from d in dbContext.DepreciationRules select d).ToList();
            return result;
        }
    }
}